<?php

// This is the main Web application configuration. Any writable
return array(
    'components' => array(
        'cache' => array(
            'class' => 'CFileCache',
        ),
        'db' => array(
            'connectionString' => 'mysql:host=127.0.0.1;dbname=freevod',
            'emulatePrepare' => true,
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
            'tablePrefix' => 'vodcms_',
            'schemaCachingDuration' => 3600,
            'queryCachingDuration' => 10000
        ),
        'cookies' => array(
            'class' => 'application.extensions.cookies.Cookies',
            'expire' => 0
        ),
        'upload' => array(
            'class' => 'application.extensions.upload.VodCmsUpload'
        ),
        'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'class' => 'CWebLogRoute', 'levels' => 'trace, info, error, warning',
                )
            )
        )
    ),
    'modules' => array(
        'admin',
        'default'
    ),
    'name' => '系统',
    'defaultController' => 'default',
    'language' => 'zh_cn',
    'charset' => 'utf-8',
    'import' => array('application.components.*'),
    'layout' => 'main',
    'sourceLanguage'=>'zh_cn',
    'preload' => array('log'),
);